/*
 * @Author: your name
 * @Date: 2021-04-23 08:48:22
 * @LastEditTime: 2021-04-23 12:12:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-admin-template-master\src\utils\premission.js
 */

export default function hasButtonPerssion (btnStr) {
  let buttons = localStorage.getItem('BUTTONS')
  return buttons.indexOf(btnStr) !== -1
}